from app.common.model import BaseModel, RecodeMixinModel
from sqlalchemy import Column, String, INT


class ShopModel(BaseModel):
    __tablename__ = 'shop'
    id = Column(INT, autoincrement=True, primary_key=True, comment='自增ID')
    name = Column(String(32), nullable=False, comment='店铺名称')
    address = Column(String(32), nullable=False, comment='店铺地址')
    phone = Column(String(32), nullable=False, comment='客服电话')
    image = Column(String(255), nullable=False, comment='店铺首图')
